export const MenuList = []

export interface MButton {
    icon: string;
    title: string;
    value: string | number;
}

export interface Result<T> {
    code: number;
    message: string;
    data: T;
}

export interface PageInfo {
    page: number;
    pageSize: number;
}

export interface SearchWithPage<T> {
    pageInfo: PageInfo;
    data?: T;
}

export interface PageResult<T> {
    total: number;
    items: T[];
}

export interface UpdateBy<T, D> {
    from: T;
    target: D;
}

export interface SearchById {
    id?: number;
    ids?: number[];
    item_ids?: number[];
}